package com.ksm.zyz.sys.service.impl;


import com.ksm.zyz.common.base.BaseServiceImpl;
import com.ksm.zyz.sys.entity.ExtTree;
import com.ksm.zyz.sys.entity.SysDict;
import com.ksm.zyz.sys.mapper.SysDictMapper;
import com.ksm.zyz.sys.service.SysDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysDictService")
public class SysDictServiceImpl extends BaseServiceImpl<SysDict> implements SysDictService {
	
	@Autowired
	private SysDictMapper sysDictMapper;

	@Override
	public List<SysDict> selectByLabel(String label) {
		return sysDictMapper.selectByLabel(label);
	}

	@Override
	public List<ExtTree> getDictTree(String label) {
		return sysDictMapper.getDictTree(label);
	}

	@Override
	public List<SysDict> selectDistinctDictList() {
		return sysDictMapper.selectDistinctDictList();
	}

	@Override
	public List<SysDict> selectTreeGrid(SysDict dict) {
		return sysDictMapper.selectTreeGrid(dict);
	}

	@Override
	public int getMaxRow() {
		return sysDictMapper.getMaxRow();
	}
}
